FROM ubuntu:22.04

COPY valkyrja/ /root/valkyrja

ARG DEBIAN_FRONTEND=noninteractive
ENV TZ=Asia/Shanghai

RUN set -ex \
    && cd /root/aimor \
	&& apt-get update -y \
    && apt-get install libmysqlclient-dev postgresql libpq-dev python3 python3-pip -y \
    && pip3 install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple/

CMD ["python3", "/root/valkyrja/manage.py"]
